package org.wisdom.security.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.wisdom.annotation.WisdomController;
import org.wisdom.vo.ResponseResult;

/**
 * 测试API
 *
 * @author 张智研
 * @date 2022/05/17 15:39
 **/
@WisdomController
@RequestMapping("/demo")
public class DemoController {
    @GetMapping
    public ResponseResult<String> add(@RequestParam("name") String name) {
        return ResponseResult.ok("hello " + name);
    }
}
